<textarea id="field_code_{$field_id}" name="feld[{$field_id}]">{$field_value|escape}</textarea>
{assign var=doc_id value=$smarty.request.Id}
{include file="$codemirror_editor" id=$field_id textarea_id="field_code_$field_id" ctrls="field_code_save( $doc_id , $field_id )" height=300}